package com.diorsunion.hedge.domain;

/**
 * Created by wanglaoshi on 2016/4/17.
 */
public enum  Trend {
    U("上升"),
    D("下降"),
    E("持平");

    public String desc;
    Trend(String desc){
        this.desc = desc;
    }

    public static final Trend judge(double ex,double cu){
        return ex<cu?U:(ex>cu)?D:E;
    }
}
